package org.unt.genlogic;

public class Value {

	private Object value;
	private Class clazz;

	public Value(Object value, Class clazz) {
		super();
		this.value = value;
		this.clazz = clazz;
	}

	public Object getValue() {
		return value;
	}

	public void setValue(Object value) {
		this.value = value;
	}

	public Class getClazz() {
		return clazz;
	}

	public void setClazz(Class clazz) {
		this.clazz = clazz;
	}

	public String toString() {
		if (value == null) {
			return "[null]";
		} else {
			String str = value.toString().trim();
			if (str.length() > 50) {
				str = str.substring(0, 50);
			}
			return str;
		}
	}
}
